<template>
  <div>
    <h1>路由传递</h1>
    <RouterLink to="/路由传递/路由传递z">路由传递z</RouterLink>
    <router-view ></router-view>
    
  </div>
</template>

<script lang="ts">

export default {
  name: '路由传递',
  props: {
    id: {
      type: Number,
      default: 1
    }
  },
  data() {//数据
    const id=10;
    return {//返回值
       id
    };
  },
  methods: {//方法
  
  }
}
</script >
<script lang="ts" setup> 
// const routes = [
//   { path: '/路由传递/:id=1', component: lycd, props: true }
// ]

</script>
<!-- 样式 -->
<style scoped>
  
</style>